package com.xbjtech.model;

import java.util.Date;

public class StoreUser implements Comparable<StoreUser>{
    private Long id;

    private String storename;

    private String storelinkname;

    private String mobile;

    private Date createtime;

    private Date updatetime;

    private Long regionid;

    private String address;

    private String longitude;

    private String latitude;

    private Integer deleted;

    private byte[] remark;
    
    private String distance;
    
    public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStorename() {
        return storename;
    }

    public void setStorename(String storename) {
        this.storename = storename == null ? null : storename.trim();
    }

    public String getStorelinkname() {
        return storelinkname;
    }

    public void setStorelinkname(String storelinkname) {
        this.storelinkname = storelinkname == null ? null : storelinkname.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Long getRegionid() {
        return regionid;
    }

    public void setRegionid(Long regionid) {
        this.regionid = regionid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude == null ? null : longitude.trim();
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude == null ? null : latitude.trim();
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public byte[] getRemark() {
        return remark;
    }

    public void setRemark(byte[] remark) {
        this.remark = remark;
    }

    @Override
	public int compareTo(StoreUser storeUser) {
		int parseInt = Integer.parseInt(this.distance)-Integer.parseInt(storeUser.distance);
		return parseInt;
	}
}






